package checkers.server.run;

import checkers.server.logic.classes.GameContext;
import checkers.server.logic.classes.GameContextInitializer;
import checkers.server.logic.classes.Logger;
import checkers.server.logic.classes.network.NetLayer;

public class Server {
	
	public static void main(String[] args) throws Exception {
		Logger log = new Logger(System.out);
		log.addMessage("Welcome to server side!");
		NetLayer layer = new NetLayer(log, 4444);
		GameContextInitializer.initialize(GameContext.getInstance(), layer, log);
		GameContext.getInstance().startServer();
	}

}
